package org.jeecg.modules.zcgl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.zcgl.entity.RepairImage;

import java.util.List;

/**
 * @Description: 用户报修维修图片信息
 * @Author: hhr
 * @Date:   2020-08-13
 * @Version: V1.0
 */
public interface RepairImageMapper extends BaseMapper<RepairImage> {

    public List<RepairImage> selectByMainId(@Param("mainId") String mainId, @Param("type") Integer type, @Param("repairFeedbackId") String repairFeedbackId);
    /**
     * 逻辑删除
     * @param mainId
     * @return
     */
    public boolean deleteByMainId(@Param("mainId") String mainId, @Param("type") Integer type);


    /**
     * 物理删除
     * @param mainId
     * @return
     */
    public boolean deletePhysicalByMainId(@Param("mainId") String mainId, @Param("type") Integer type);
}
